package com.aspose.cells;

class zbiy extends zck {
   private com.aspose.cells.b.a.b.zq k = com.aspose.cells.b.a.b.zq.c();

   zbiy(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f();
      float var3 = var1.g();
      float var4 = var1.h();
      float var5 = var1.i();
      float var6 = 0.0F;
      float var7;
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            if (var4 > var5) {
               var7 = Math.min(var4, var5);
               var6 = var7 * com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F;
            } else {
               var7 = Math.max(var4, var5);
               var6 = var7 * com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F;
            }
         } else if (var4 > var5) {
            var7 = Math.min(var4, var5);
            var6 = var7 * 42533.0F / 100000.0F;
         } else {
            var7 = Math.max(var4, var5);
            var6 = var7 * 42533.0F / 100000.0F;
         }
      } else if (var4 > var5) {
         var7 = Math.min(var4, var5);
         var6 = var7 * 42533.0F / 100000.0F;
      } else {
         var7 = Math.max(var4, var5);
         var6 = var7 * 42533.0F / 100000.0F;
      }

      var4 = (float)((double)var4 / Math.cos(zbif.a(18.0D)));
      var7 = var1.i() / 2.0F - var6;
      float var8 = var5 - 2.0F * var7;
      float var9 = var8 * var4 / var5;
      var2 = (float)((double)var2 - (double)var4 * (1.0D - Math.cos(zbif.a(18.0D))) / 2.0D);
      com.aspose.cells.b.a.b.a.ze var10 = new com.aspose.cells.b.a.b.a.ze();
      com.aspose.cells.b.a.b.zo[] var11 = new com.aspose.cells.b.a.b.zo[3];
      com.aspose.cells.b.a.b.zo[] var12 = new com.aspose.cells.b.a.b.zo[3];

      for(int var13 = 0; var13 < 10; ++var13) {
         var11[0] = new com.aspose.cells.b.a.b.zo((float)((int)((double)(var2 + var4 / 2.0F) + Math.cos(zbif.a((double)(18 + var13 * 36))) * (double)var4 / 2.0D)), (float)((int)((double)(var3 + var5 / 2.0F) + -Math.sin(zbif.a((double)(18 + var13 * 36))) * (double)var5 / 2.0D)));
         var11[2] = new com.aspose.cells.b.a.b.zo((float)((int)((double)(var2 + var4 / 2.0F) + Math.cos(zbif.a((double)(18 + (var13 + 1) * 36))) * (double)var4 / 2.0D)), (float)((int)((double)(var3 + var5 / 2.0F) + -Math.sin(zbif.a((double)(18 + (var13 + 1) * 36))) * (double)var5 / 2.0D)));
         var11[1] = new com.aspose.cells.b.a.b.zo((float)((int)((double)(var2 + var4 / 2.0F) + Math.cos(zbif.a((double)(36 + var13 * 36))) * (double)var9 / 2.0D)), (float)((int)((double)(var3 + var5 / 2.0F) + -Math.sin(zbif.a((double)(36 + var13 * 36))) * (double)var8 / 2.0D)));
         var10.a(var11[0], var11[1]);
         var10.a(var11[1], var11[2]);
         if (var13 == 0) {
            var12[0] = new com.aspose.cells.b.a.b.zo(var11[1].d(), var11[1].e());
         } else if (var13 == 3) {
            var12[1] = new com.aspose.cells.b.a.b.zo(var11[1].d(), var11[1].e());
         } else if (var13 == 5) {
            var12[2] = new com.aspose.cells.b.a.b.zo(var11[1].d(), var11[1].e());
         }
      }

      this.k.a(var12[1].d());
      this.k.b(var12[1].e());
      this.k.c(var12[0].d() - var12[1].d());
      this.k.d(var12[2].e() - var12[1].e());
      return var10;
   }

   void a() {
      super.c(this.k);
   }
}
